package servlet;

import java.sql.Timestamp;

/**
 * @author ：xx
 * @date ：Created in 2020/5/22 9:28
 * @description：
 * @modified By：
 */
public class news {
    private Integer id;
    private String title;
    private String content;
    private Timestamp addtime;
    private Timestamp updatetime;
    private String url;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getAddtime() {
        return addtime;
    }

    public void setAddtime(Timestamp addtime) {
        this.addtime = addtime;
    }

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    //注解，用来告诉java 编译器这是 重载
    @Override
    public String toString() {
        return "news{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", addtime=" + addtime +
                ", updatetime=" + updatetime +
                ", url='" + url + '\'' +
                '}';
    }
}
